import axios from '@/libs/api.request'

export class InvoiceApi {
  // 根据开票方式获取金额
  static getMoneyByInvoiceType (params) {
    return axios.request({
      url: '/Invoice/GetMoneyByInvoiceType',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 新增开票申请
  static postInvoice (params) {
    return axios.request({
      url: '/Invoice/PostInvoice',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 发票申请列表
  static getApplyInvoiceList (params) {
    return axios.request({
      url: '/Invoice/GetApplyInvoiceList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 发票信息填写
  static postInvoiceApply (params) {
    return axios.request({
      url: '/Invoice/PostInvoiceApply',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 发票开具汇总
  static getInvoiceList (params) {
    return axios.request({
      url: '/Invoice/GetInvoiceList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 发票开具汇总导出
  static exportInvoice (params) {
    return axios.request({
      url: '/Invoice/ExportInvoice',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 发票开具汇总导出KFC
  static exportInvoiceKFC (params) {
    return axios.request({
      url: '/Invoice/ExportInvoiceKFC',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导入发票填写
  static importInvoice (params) {
    return axios.request({
      url: '/Invoice/ImportInvoice',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出应收帐单
  static exportReceiveIncome (params) {
    return axios.request({
      url: '/Invoice/ExportReceiveIncome',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出应付帐单
  static exportReceiveCost (params) {
    return axios.request({
      url: '/Invoice/ExportReceiveCost',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
